<?php
	$path = (isset($_SERVER['PATH_INFO'])) ? $_SERVER['PATH_INFO'] : @getenv('PATH_INFO');
	if (trim($path, '/') != '' && $path != '/index.php') {
		$segmentos = array();
		foreach (explode('/', preg_replace("|/*(.+?)/*$|", "\\1", $path)) as $val) {
			if ($val != '')
				$segmentos[] = $val;
		}
		/*
		$_GET['section'] = $segmentos[0];
		$_GET['action'] = $segmentos[1];
		$_GET['id'] = $segmentos[2];
		*/
		var_dump($segmentos);
	}
?>